package com.wkg.springblogdemo.pojo.response;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.wkg.springblogdemo.common.util.DateUtils;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BlogInfoResponse {
    private Integer id;
    private String title;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd")

    private LocalDateTime createTime;

/*    public String getCreateTime() {
        return DateUtils.format(createTime);
    }*/


}
